package com.community.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.springframework.cglib.core.Local;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author zxd
 * @date 2025/7/15
 */
//@Getter
//@Setter
//@ToString
@Data//@Getter+@Setter+@ToString
@TableName("village") // 明确指定表名（确保与数据库表名一致）
public class Village {
    //小区唯一id
    @TableId(type=IdType.AUTO)//配置主键自动增长
    private Long id;
    //小区编号
    private String number;

    private String name;

    private String address;

    private int totalBuildings;

    private int totalHouseholds;

    @TableField("image_url")
    private String image;

    private String tenementName;

    private LocalDateTime created;

}
